﻿using Koonsoft.HYCRM.DAL;

namespace Koonsoft.HYCRM.BLL
{
    public class ConsultationBLL
    {
        private ConsultationDAL _dal = null;

        protected ConsultationDAL DAL
        {
            get
            {
                if (_dal == null)
                {
                    _dal = new ConsultationDAL();
                }

                return _dal;
            }
        }

        /// <summary>
        /// 新增咨询
        /// </summary>
        /// <param name="name"></param>
        /// <param name="telephone"></param>
        /// <param name="delegateType"></param>
        /// <param name="remark"></param>
        /// <param name="qq"></param>
        /// <param name="empolyeeID"></param>
        /// <returns></returns>
        public bool AddConsultation(string name, string telephone, int delegateType, string remark, string qq, int empolyeeID)
        {
            return DAL.AddConsultation(name, telephone, delegateType, remark, qq, empolyeeID);
        }

        /// <summary>
        /// 删除某个咨询
        /// </summary>
        /// <param name="consultationID"></param>
        /// <returns></returns>
        public bool RemoveConsultation(int consultationID)
        {
            return DAL.RemoveConsultation(consultationID);
        }
    }
}
